/*
 * vws_http_request.h
 *
 *  Created on: Sep 20, 2013
 *      Author: vscen
 */

#ifndef VWS_HTTP_REQUEST_H_
#define VWS_HTTP_REQUEST_H_

#include "vws_config.h"
#include "vws_http_error.h"

namespace vws {
namespace vws_http_request_const{
typedef enum {GET,POST}REQUEST_METHOD;
REQUEST_METHOD request_method;
}
class vws_http_request:private vws_http_error {
public:
	void begin_analyize(const char* request, const char** response,
			std::string& errors);
	void end_analyize();
	bool
	valid_line_count(const char* request, std::list<std::string>& proto);
	bool check_basic_method(const char* request, std::string& method);
	bool check_basic_host(const char* request, std::string& host);
	bool is_enter_and_newline(const char* line);
	bool skip_space(const char** line);
	bool skip_step_pos(const char** line,int count);
};
}

#endif /* VWS_HTTP_REQUEST_H_ */
